package com.ruoyi.boss.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 经营许可证信息对象 business_license
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class BusinessLicense extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 许可证ID（自增主键） */
    private Long id;

    /** 服务机构名称（如：凌动逸行科技有限公司威海分公司） */
    @Excel(name = "服务机构名称", readConverterExp = "如=：凌动逸行科技有限公司威海分公司")
    private String serviceOrgName;

    /** 许可地行政区划代码（如：150100） */
    @Excel(name = "许可地行政区划代码", readConverterExp = "如=：150100")
    private String licenseAdminDivCode;

    /** 许可证号（如：16100012234） */
    @Excel(name = "许可证号", readConverterExp = "如=：16100012234")
    private String licenseNumber;

    /** 经营区域-省份 */
    @Excel(name = "经营区域-省份")
    private String province;

    /** 经营区域-城市 */
    @Excel(name = "经营区域-城市")
    private String city;

    /** 经营区域-区县 */
    @Excel(name = "经营区域-区县")
    private String district;

    /** 发证机构名称（如：内蒙古交运管） */
    @Excel(name = "发证机构名称", readConverterExp = "如=：内蒙古交运管")
    private String issuingOrgName;

    /** 证件有效日期-开始 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "证件有效日期-开始", width = 30, dateFormat = "yyyy-MM-dd")
    private Date licenseValidStart;

    /** 证件有效日期-结束 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "证件有效日期-结束", width = 30, dateFormat = "yyyy-MM-dd")
    private Date licenseValidEnd;

    /** 发证日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发证日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date issuingDate;

    /** 状态（如：有效、过期） */
    @Excel(name = "状态", readConverterExp = "如=：有效、过期")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setServiceOrgName(String serviceOrgName) 
    {
        this.serviceOrgName = serviceOrgName;
    }

    public String getServiceOrgName() 
    {
        return serviceOrgName;
    }

    public void setLicenseAdminDivCode(String licenseAdminDivCode) 
    {
        this.licenseAdminDivCode = licenseAdminDivCode;
    }

    public String getLicenseAdminDivCode() 
    {
        return licenseAdminDivCode;
    }

    public void setLicenseNumber(String licenseNumber) 
    {
        this.licenseNumber = licenseNumber;
    }

    public String getLicenseNumber() 
    {
        return licenseNumber;
    }

    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }

    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }

    public void setIssuingOrgName(String issuingOrgName) 
    {
        this.issuingOrgName = issuingOrgName;
    }

    public String getIssuingOrgName() 
    {
        return issuingOrgName;
    }

    public void setLicenseValidStart(Date licenseValidStart) 
    {
        this.licenseValidStart = licenseValidStart;
    }

    public Date getLicenseValidStart() 
    {
        return licenseValidStart;
    }

    public void setLicenseValidEnd(Date licenseValidEnd) 
    {
        this.licenseValidEnd = licenseValidEnd;
    }

    public Date getLicenseValidEnd() 
    {
        return licenseValidEnd;
    }

    public void setIssuingDate(Date issuingDate) 
    {
        this.issuingDate = issuingDate;
    }

    public Date getIssuingDate() 
    {
        return issuingDate;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serviceOrgName", getServiceOrgName())
            .append("licenseAdminDivCode", getLicenseAdminDivCode())
            .append("licenseNumber", getLicenseNumber())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("issuingOrgName", getIssuingOrgName())
            .append("licenseValidStart", getLicenseValidStart())
            .append("licenseValidEnd", getLicenseValidEnd())
            .append("issuingDate", getIssuingDate())
            .append("status", getStatus())
            .toString();
    }
}
